<template>
  <div>
    <setHeader :title="headerTitle"></setHeader>
    <div class="content" style="margin-bottom: 0;">
      <!-- 信息 -->
      <div class="main-navigater main-nav-menu" style="margin-top: 0;">
          <div class="main_menu clear" style="width: 100%;height:1.01rem !important;">
              <!-- <span class="fl" style="width: 1.8rem; display: inline-block;">展示公司：  -->
                <!-- <input type="text" v-model="companyName" placeholder="请输入您的公司名称" style="font-size: 0.26rem; color: #666;" @input="matchCompany($event)"> -->
              <!-- </span> -->
              <label for="">展示公司：
                <Autocomplete :placeholder="'请输入展示公司名称'"  @companyData="companyData" @companyKey="companyKey" :companyShow="true" class="search_complete fr"></Autocomplete>
              </label>
          </div>
          <div class="main_menu" style="text-align: left;" @click="hyClick">
              <label for="">所在行业： 
              <span v-if="hy_name">
                {{hy_name}}
              </span>
              <span v-else style="font-size: 0.26rem; color: #ededed;line-height:0.3rem;">
                请选择您的行业
              </span>
                <!-- <input type="text" v-model="hy_name" style="font-size: 0.26rem; color: #666;" placeholder="请选择您的行业"> -->
                <!-- <select name="" id="trade" v-model="trade">
                  <option value="" selected>请选择行业</option>
                  <option :value="item.id" v-for="(item, i) in industryList" :key="i">{{item.HY_MC}}</option>
                </select> -->
                </label>
          </div>
          <div style="border-bottom: 0.12rem solid #f5f5f5; border-top: 0.12rem solid #f5f5f5;">
            <visitingCard v-on:CardLogo="CardLogo" :CardLogo="Logo" headerimg="个人头像："></visitingCard>
          </div>
          
          <!-- <div class="main_menu" style="border-bottom: 0.12rem solid #f5f5f5;text-align: left;">
              <label for="">个人头像： <input type="hidden" v-model="CardLogo" style="font-size: 0.26rem; color: #666;"></label>
          </div> -->
          
          <a href="javascript:void(0)" class="main_menu">
              <label for="">真实姓名： <input type="text" v-model="username" style="font-size: 0.26rem; color: #666;" placeholder="请输入您的真实姓名"></label>
          </a>
          <a href="javascript:void(0)" class="main_menu">
              <label for="">电话号码： <input type="text" maxlength="11"  v-model="mobile" style="font-size: 0.26rem; color: #666;" placeholder="请输入您的电话号码"></label>
          </a>
          <div class="main_menu">
              <label for="">电子邮箱： <input type="text" maxlength="20" v-model="usermail" style="font-size: 0.26rem; color: #666;" placeholder="请输入您的电子邮箱"></label>
          </div>
         <!--  <div class="main_menu">
              <label for="">工作职位： <input type="text" v-model="position" style="font-size: 0.26rem; color: #666;" placeholder="请输入您的工作职位"></label>
          </div> -->
          <div class="main_menu" v-show="showss">
                <label for="">您的职位：<input type="text" placeholder="请输入职位名称" v-model="architeName" @mousedown="showPicker"></label>
                
            </div>
            <div class="main_menu" v-show="showsss">
                <label for="">您的职位：<input type="text" placeholder="请输入职位名称" v-model="architeNames" @click.capture="showCompanyList" @mousedown="showPicker"></label>
                
            </div>
            <mt-popup
                v-model="popupVisible"
                position="bottom">
            <ul> 
                <li style="text-align: left;" :style="list.style" v-for="list in UcompanyList" @click="JoinCompany(list.name,list.id)" :key="list.id">{{list.name}}</li>
            </ul>
            </mt-popup>
      </div>
        <!-- <el-upload
            class="avatar-uploader"
            :action="importFileUrl"
            :show-file-list="false"
            :on-success="handleAvatarSuccess"
            :before-upload="beforeAvatarUpload">
            <img v-if="CardLogo" :src="imgUrl + CardLogo" class="avatar" style="width: 1.2rem;height: 1.2rem;border-radius: 50%;position: relative;">
            <div class="plusBGI"><img src="../common/images/u3095.png" alt=""></div>
            <i v-else class="el-icon-plus avatar-uploader-icon"></i>
        </el-upload> -->
        <div class="create" @click="submitCard">生成名片</div>
        <div class="match">
            <ul @click="selectCompany($event)" class="companylist">
                <li v-for="(item, i) in companyList" :c_id="item.id" :key="i">{{item.name}}</li>
            </ul>
        </div>
      <!-- 真实姓名 -->
      <!-- <ViewModal :modalState.sync="viewState">
          <nupdate @done="closePageModal" v-show="nupdate_show" @Updatedone="UpdateName"></nupdate>
          <uupdate @done="closePageModal" v-show="uupdate_show" @UpdateUserNamedone="UpdateUserName"></uupdate>
          <cupdate @done="closePageModal" v-show="cupdate_show" @UpdateCompanydone="UpdateCompany"></cupdate>
          <eupdate @done="closePageModal" v-show="eupdate_show" @UpdateEmaildone="UpdateEmail"></eupdate>
      </ViewModal> -->
 
      <!-- <div class="suspension-info suspension-uinfo">
          <div class="suspension-info-top">
              <img src="../common/images/userAvatar.png" ref="userImg" :style= "{ height: userImgHeight + 'px' }">
              <div class="suspension-info-top-center">
                <h2>姓名</h2>
                <p style="color:#c6c6c6;font-size:12px;" >信息介绍</p>
                
                <div class="clear"></div>
              </div>   
          </div>
            <div class="suspension-info-bottom">
                <ul>
                  <li>72</br>收藏</li>
                  <li>120</br>卡卷</li>
                  <div class="clear"></div>
                </ul>
            </div>       
      </div>  -->
      <!--个人信息-->
      <!-- <mt-cell title="个人头像"  is-link  to="/uavatar">
        <img slot="icon" :src="this.userInfo.userhead" width="30" height="30" style="float:right">
      </mt-cell> -->
      <!-- <div>
          <mt-cell title="名字" v-model="this.userInfo.name" is-link to="/nupdate"></mt-cell>
          <mt-cell title="关联公司" v-model="this.userInfo.company"  is-link to="/cupdate"></mt-cell>
          <mt-cell title="会员名"  v-model="this.userInfo.username" is-link to="/uupdate"></mt-cell>
          <mt-cell title="电话号码" v-model="this.userInfo.mobile" is-link to="/mupdate"></mt-cell> 
          <mt-cell title="邮箱" v-model="this.userInfo.email" is-link to="/eupdate"></mt-cell>
          <div v-on:click="outlogin"><mt-cell title="退出登陆" is-link ></mt-cell></div>
      </div> -->
    </div>
    <!-- 行业 -->
    <IndustryLinkage v-show="industryShow" @categoryname="showIndustry" @categoryId="showIndustryId" @done="closeAdd" :industryshow="true"></IndustryLinkage>
 </div>
</template>

<script>
  import setHeader from '../public/setHeader.vue';
  import visitingCard from '../public/visiting_card';
  import IndustryLinkage from '@/components/industry_linkage';
  import Autocomplete from '@/components/companyAutocomplete';
  // import ViewModal from "@/components/View";
  // import nupdate from "@/public/nupdate"
  // import uupdate from "@/public/uupdate"
  // import cupdate from "@/public/cupdate"
  // import eupdate from "@/public/eupdate"
  import axios from 'axios';
  import qs from 'qs'
  import { MessageBox, Actionsheet, Button, Indicator } from 'mint-ui';

  export default {
    data() {
      return {
        headerTitle:'编辑名片信息',
        industryShow: false,
        viewState: false,
        logining: true,
        update_arr:{
            email:'',
            access_token:'',
        },
        checked: true,
        //新搬过来的
        popupVisible:false,
        architeName: '',
        architeNames: '',
        architeNamea: '',
        showss: '',
        showsss: '',
        UcompanyList:[],
        architeId:'',

        userImgHeight:'',
        companyName: '',
        companyId:'',
        companyAddress:'',
        industryList: [], // 行业列表
        trade: '', // 行业id
        username: '', // 真实姓名
        mobile: '', // 手机号码
        usermail: '', // 用户邮箱
        position: '', // 职位
        logImgPath: '', // 
        // imgUrl: this.$path,
        Logo: '/public/images/default.png', // 默认头像
        importFileUrl:this.$path+'/index.php/api/uploadLogo',

        //组件隐藏
        // nupdate_show: false,
        // uupdate_show: false,
        // cupdate_show: false,
        // eupdate_show: false,
        update_name:{
            access_token:'',
        },
        access_token: '',
        companyList: [], // 匹配到的企业列表
        companyDetails: {}, // 选中的企业的详情
        userInfo: {}, // 
        hy_name: '',  //行业
        c_hyId: '',   //行业id
      }
    },
    components: {
      Button,
      setHeader,
      visitingCard,
      IndustryLinkage,
      Autocomplete
      // ViewModal,
      // nupdate,
      // uupdate,
      // cupdate,
      // eupdate
    },
    created() {
        let that = this;
        if(!window.localStorage.getItem('userInfo')){
          this.$openTips({
            text: '请先登录',
            time: 2000
          })
        this.$router.push({
            path: '/login',
        })
      }
        that.userInfo = window.localStorage.getItem('userInfo');
        that.userInfo = JSON.parse(that.userInfo);
        that.username = that.userInfo.username ? that.userInfo.username : '';   //真实名字
        that.mobile   = that.userInfo.mobile ? that.userInfo.mobile : '';    //电话号码
        that.usermail = that.userInfo.usermail ? that.userInfo.usermail : ''; //电子邮件
        that.Logo     = that.userInfo.userhead ? that.userInfo.userhead : that.$path + '/public/images/default.png';  //头像

        that.getIndustryList();
        
    },
    mounted() {
      let that = this;
      
      that.update_arr.access_token = window.localStorage.getItem('access_token');
      that.access_token = window.localStorage.getItem('access_token');
    
      // var a = Promise.resolve(this.getUserInfo());
      // a.then(function (result) { 
      //     console.log(result);
      //     that.userInfo = result;
      //     that.update_name.name = result.name;
      // }) 
      // document.onkeydown = function(e) {
      //   console.log('1512', e);
      //   e = window.event || e;
      //   e.returnValue = false;
      //   return false;
      // }
    },
    methods: {
        // 企业id
        companyData(data) {
          this.companyName = data.value;
          console.log('dataid',data)
          this.companyId = data.id;
          this.companyAddress = data.address;
          this.getAuthriList(data.id);

        },
        companyKey(value) {
          this.companyName = value;
           console.log('输入的企业',value);
        },
        CardLogo: function(data){
          console.log(data);
          this.Logo = data;
        },
        hyClick() {
          this.industryShow = !this.industryShow;
        },
        //行业
        showIndustry(data) {
          this.hy_name = data;
          this.industryShow = false;
        },
        // companyClick(company_name) {
        //   console.log('company_name',company_name);
          
          
        // },
        showIndustryId(data) {
          this.c_hyId = data;
          console.log('行业Id',this.c_hyId);
          //调用接口检索
          // this.checkCircle();
          this.industryShow = false;
        },
        // 关闭选择地区
        closeAdd() {
          this.industryShow = false;
        },
        /**
         * 提交生成名片
         */
        submitCard: function(){
          // 进行一波判断数据
          //公司名
          if (this.companyName == '') {
            this.$openTips({
                text: '公司名不能为空',
                time: 2000
            }) 
            return false;
          }
          //公司名
          if (this.c_hyId == 0) {
            this.$openTips({
                text: '请选择行业',
                time: 2000
            }) 
            return false;
          }
          //名片名
          if (this.username.trim() == '') {
            this.$openTips({
                text: '名片名不能为空',
                time: 2000
            }) 
            return false;
          }
          // 手机
          if(!(/^1[3456789]\d{9}$/.test(this.mobile))){ 
            this.$openTips({
                text: '手机格式错误，请重新填写',
                time: 2000
            }) 
            return false; 
          } 
          // 邮箱
          if(!(/^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(this.usermail))){ 
            this.$openTips({
                text: '邮箱格式错误，请重新填写',
                time: 2000
            })
            return false; 
          }
          //职位
          // if (this.companyName != '') {
          //   this.$openTips({
          //       text: '工作职位不能为空',
          //       time: 2000
          //   }) 
          //   return false;
          // }
            var that = this;

            // if(this.companyDetails){
                var data = {
                    access_token: this.access_token,
                    cid: this.companyId? this.companyId : 0,
                    companyName: this.companyName
                };
                

                //判断是否存在企业
                that.$post(that.$path + '/index.php/api/checkCompany', data).then((response)=>{
                    console.log(response);
                    if(response.code == 200){
                        
                        //存在企业 加入企业
                        var data = {
                          access_token: that.access_token,
                          userId: that.userInfo.uid,
                          companyName: that.companyName,
                          userName: that.username,
                          architeName: that.position,
                          applyInfo:'名片',
                          architeId:that.architeId,
                        }
                        //职位
                        if (data.architeName == '') {
                          that.$openTips({
                              text: '工作职位不能为空',
                              time: 2000
                          }) 
                          return;
                        }
                        
                        // this.$fetch(this.$path + '/api.php/company/userApplyInCompany', data).then((response)=>{
                        //     console.log(response);
                        //   }
                        // )}
                        that.$fetch(that.$path + '/api.php/company/userApplyInCompany', data).then((response)=>{
                            console.log(response);
                            // if(response.code != -1){
                            //     that.$router.push({
                            //         path: '/UserCard'
                            //     })
                               
                            

                            // }else{
                            //     that.$openTips({
                            //         text: '系统繁忙，请稍后再试',
                            //         time: 2000
                            //     })
                            // }

                        })
                       

                        // 创建名片
                        var cardData = {
                            access_token: that.access_token,
                            userId: that.userInfo.uid,
                            c_id: that.companyId,
                            adminName: that.username,
                            companyName: that.companyName,
                            CardPhone: that.mobile,
                            job: that.position,
                            email: that.usermail,
                            CardCompanyAddress: that.companyAddress,
                            CardLogo: that.Logo
                        }
                        that.$post(that.$path + '/index.php/api/createCard', cardData).then((response)=>{
                            console.log(response);
                            if(response.code == 200){
                              that.$openDialog({
                                  src: require('../common/images/UI-11.png'),
                                  title: '提交完成',
                                  message: '名片添加成功',
                                  okText: '完成',
                                  callback (flag) {
                                      if(flag) {
                                          that.$router.replace({
                                              path: '/UserCard'
                                          })
                                      }     
                                  }
                              });
                                
                            }else{
                                that.$openTips({
                                    text: '系统繁忙，请稍后再试',
                                    time: 2000
                                })
                            }

                        })

                    }else{
                        //不存在企业
                        // 先添加企业
                        var companyData = {
                            companyName: that.companyName,
                            userId: that.userInfo.uid,
                            adminName: that.username,
                            job: that.position ? that.position : '空',
                            trade: that.c_hyId,
                            access_token: that.access_token
                        };
                        that.$fetch(that.$path + '/api.php/company/userCreateCompany', companyData).then((response)=>{
                            console.log(response);
                            if(response.code == 200){
                                var cardData = {
                                    access_token: that.access_token,
                                    c_id: response.data.c_id,
                                    userId: that.userInfo.uid,
                                    adminName: that.username,
                                    companyName: that.companyName,
                                    CardPhone: that.mobile,
                                    job: that.position,
                                    email: that.usermail,
                                    CardCompanyAddress: that.companyDetails.address? that.companyDetails.address : null,
                                    CardLogo: that.Logo
                                }
                                // 再创建名片
                                that.$post(that.$path + '/index.php/api/createCard', cardData).then((response)=>{
                                    console.log(response);
                                    if(response.code == 200){
                                        that.$router.replace({
                                            path: '/UserCard'
                                        })
                                    }else{
                                        that.$openTips({
                                            text: '系统繁忙，请稍后再试',
                                            time: 2000
                                        })
                                    }
        
                                })
                            }else{

                            }

                        })
                    }
                })

            // }
        },
        /**
         * 筛选选择哪个企业
         */
        selectCompany: function(e){
            var that = this;
            var data = {
                access_token: this.access_token,
                id: e.target.attributes.c_id.value
            };
            // 获得企业详情
            this.$post(this.$path + '/index.php/api/companyDetails', data).then((response)=>{
                console.log(response);
                  if(response.code == 200){
                    that.companyDetails = response.data;
                    that.companyName = response.data.name;
                    that.trade = response.data.trade;
                    // $('#trade')[0].disabled = true;
                  }else{

                  }
              })
              this.companyList = [];
        },
        /**
         * 获取行业列表
         */
        getIndustryList: function(){
          var that = this;
          var data = {
                access_token: this.access_token,
            };
          this.$post(this.$path + '/index.php/api/industryList', data).then((response)=>{
            console.log(response);
              if(response.code == 200){
                that.industryList = response.data;
              }else{

              }

          })
        },
        /**
         * 模糊查询企业
         */
        matchCompany: function(e){
            var that = this;
            var keyWords = e.target.value;
            console.log(keyWords)
            if (keyWords == '') {
              that.companyList = [];
              return ;
            }
            // if (keyWords == that.companyDetails.name) {
              // $('#trade')[0].disabled = true;
            // }
            var data = {
                access_token: this.access_token,
                keyWords: keyWords
            }
            this.$post(this.$path + '/index.php/api/matchCompany', data).then((response)=>{
                console.log(response);
                  if(response.code == 200){
                    that.companyList = response.data;

                    //获取当前企业的所有职位信息
                    that.getAuthriList(response.data.id);
                  }else{
                    that.companyList = [];
                  }

              })
        },
        //编辑个人信息后保存
        gotobtn() {

        },
        //点击选择职业
        showCompanyList:function(){
            this.popupVisible = true;
        },
        JoinCompany:function(name,id){
            this.architeNames= name;
            this.architeName = name;
            this.architeId = id;
            this.architeNamea = name;
            this.position = name;
            // this.userInfo.company_id = id;
            //  console.log('company_id', this.userInfo.company_id);
            this.popupVisible = false;
        },
        showPicker(e){
            e.preventDefault(); //阻止输入法的唤醒
        },
        //获取当前企业的所有职位信息
        getAuthriList:function(cp_id){
            let that = this;
            // let company_id = that.userInfo.company_id;
            console.log('进来了cp_id', cp_id);
            this.$post(
                that.$path+'/api.php/company/getCompanyAuthi',{cp_id:cp_id,access_token:that.access_token})
                .then((res) => {
                    console.log('企业职位', res);
                     if(res.code == 200) {
                        let count = res.data.length;
                        if(count == 1){
                            that.showss = true;
                            that.architeName= res.data[0].name;
                            that.company_id = res.data[0].id;
                        }else{
                            that.architeNames= '请点击选择职位';
                            that.showss = false;
                            that.showsss = true;
                            that.UcompanyList = res.data;
                            that.UcompanyList.forEach((element,index) => {
                                if(element.level == 1) {
                                    that.UcompanyList[index].style = 'padding-left: 0.2rem';
                                }else if(element.level == 2){
                                    that.UcompanyList[index].style = 'padding-left: 0.6rem';
                                }else if(element.level == 3){
                                    that.UcompanyList[index].style = 'padding-left: 1rem';
                                }
                            });
                            console.log('字符',that.showsss);
                            
                        }                        
                     }
            })
        },

        handleReset2() {
          this.$refs.ruleForm2.resetFields();
        },
        handleSubmit2(ev) {
          var _this = this;
          // var params = JSON.stringify(this.ruleForm2);
          // this.loading = true;
          // Indicator.open({
          //   text: '加载中...',
          //   spinnerType: 'snake'
          // });
                // this.$router.push({path:'/'});
          // 
          // console.log(qs.stringify(this.ruleForm2));
          // console.log(this.ruleForm2)
        // loadinginstace =  Indicator.open({text: '加载中...',spinnerType: 'snake'});
        axios.post(_this.$path+'/api.php/api/Login',qs.stringify(this.ruleForm2)).then((response) => {
               if(response){ 
                  // Indicator.close();
                  // console.log(response);

                 if(response.data.code ==200){ 
                  	console.log(response);
                      window.localStorage.setItem('access_token',response.data.data.access_token);

                     MessageBox('提示',response.data.msg).then(action =>{
                        _this.$router.push({path:'/userCenter'});
                      });

                  }else{ 
                    MessageBox('提示',response.data.msg);
                  }
               }
             
        })


      },
      //完成
      // carryout:function(){
      //   this.$router.push({path:'/userCenter'});
      // },
     outlogin:function(){
        localStorage.removeItem('access_token');
        this.$router.push({path:'/'});
      },
      //点击返回个人中心
      // gotoback() {
      //   this.$router.push({path:'/userCenter'});
      // }
  //     actionSheet: function(){
  //         // 打开action sheet
  //         this.sheetVisible = true;
  //     },
  //     getCamera: function(){
  //       console.log("打开相机")
  //     },
  //     getLibrary: function(){
  //       console.log("打开相册")
  //     },
      

      // 头像begin
      // handleAvatarSuccessTwo(res, file) {
      //   this.logImgPath = res.headpath;
      //   this.userInfo.userhead = URL.createObjectURL(file.raw);
      //   console.log(this.logImgPath);
      // },
      // beforeAvatarUploadTwo(file) {
      //   const isJPG = file.type === 'image/jpeg';
      //   const isPNG = file.type === 'image/png';
      //   const isLt2M = file.size / 1024 / 1024 < 2;

      //   if (!isJPG && !isPNG) {
      //     this.$message.error('上传头像图片只能是 JPG 或 PNG 格式!');
      //     return false;
      //   }
      //   if (!isLt2M) {
      //     this.$message.error('上传头像图片大小不能超过 2MB!');
      //     return false;
      //   }
      // },


    }
  }

</script>
<style>
@import '../common/css/userCenter.css';

/* 个人头像 */
.main-people-img {
  height: 1rem;
  line-height: 1rem;
}
.main-people-img h3{
  font-size: 0.28rem;
  color: #333;
  font-weight: 500;
}
.main-nav-menu label {
  width: 100%;
  line-height: 1rem;
}
.main-nav-menu input {
  line-height: 0.9rem;
  width: 78%;
}

.main-nav-menu input::-webkit-input-placeholder {
    color: #ededed;
}

.main-nav-menu input:-moz-placeholder {
    color: #ededed;
}

.main-nav-menu input:-ms-input-placeholder {
    color: #ededed;
}
.main-nav-menu .main_menu:last-child {
  border-bottom: 1px solid #d8d8d8;
}

/* 卡片底部 */
.visitors_bottom {
  border-top: 1px solid #f3f3f3;
  padding-top: 0.2rem;
}
.visitors_bottom ul>li{
  width: 50%;
}
.match{
    /* width: 100%;
    position: fixed;
    background-color: #fff;
    top: 1.83rem;
    text-align: left;
    border-radius: 0.06rem;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc; */
    position: absolute;
    z-index: 1;
    width: 100%;
    background: #fff;
    overflow: hidden;
    box-shadow: 1px 1px 3px #ededed;
    -webkit-box-shadow: 1px 1px 3px #ededed;
    -moz-box-shadow: 1px 1px 3px #ededed;
    -o-box-shadow: 1px 1px 3px #ededed;
    top: 1rem;
    text-align: left;
    line-height: 0.56rem;
    font-size: 0.38rem;
    color: #666;
    padding-left: 0.2rem;
}
/* .match li{
    color: #333;
    font-size: 0.4rem;
    padding: 0.2rem 0 0.2rem 0.4rem;
    border-bottom: 1px solid #ccc;
}
.match li:first-child{
  border-top: 1px solid #ccc;
}
.match li:last-child{
  border-bottom: 1px solid #ccc;
} */
.create{
    width: 7.1rem;
    height: 1.1rem;
    margin: 0 auto;
    font-size: 0.32rem;
    color: #fff;
    background-color: #e50838;
    border-radius: 4px;
    line-height: 1.1rem;
    margin-top: 0.9rem;
}
.avatar-uploader{
    position: absolute;
    right: 0.2rem;
    top: 2.05rem;
   margin-top: 0.4rem;
   padding-bottom: 0.28rem;
 }
.avatar-uploader .el-upload {
    border: none;
    border-radius: 2px ;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 0.9rem;
    height: 0.9rem;
    position: relative;
    top: -0.45rem;
}
.avatar-uploader img {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 2px;
}
#trade{
    width: 78%;
    height: 0.9rem;
    color: #333;
    border: none;
    background-color: #fff;
    line-height: 0.9rem;
    vertical-align: baseline;
    outline: none;
}

/* 该企业已存在 */
.mt-notice{
  /* height: 1.1rem ; */
  line-height: 0.66rem ;
  font-size: 0.36rem ;
  padding: 0 0.2rem ;
  font-weight: 500;
  font-family:SourceHanSansCN-Medium;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/*展示公司*/
.search_complete {
    width: 80%;
    display: inline-block;
    height: 0.98rem;
    line-height: 0.98rem;
    text-align: left;
    text-indent: -0.07rem;
}

</style>
